home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
c4
/
pro2
/
1n06008a
< prev
next >
Wrap
Text File
|
1990-09-26
|
393b
|
29 lines
#include "stdio.h"
int addup(int a, int b);
int main()
{
int a
int b
int c;
for (a = 0; a < 10; ++a)
{
for (b = 0; b < 10; ++b)
{
c = addup(a,b);
printf("%i + %i = %i\n",a,b,c);
}
}
return 0;
}
int addup(int a, int b)
{
return (a + b);
}